//
//  ModalViewController.m
//  MP3Player
//
//  Created by kci yoo on 8/15/11.
//  Copyright 2011 Daum Communications. All rights reserved.
//

#import "ModalViewController.h"

@implementation ModalViewController

@synthesize delegate;

- (id)init
{
    self = [super init];
    if (self) {

        ModalView * modalView = [[[ModalView alloc] initWithFrame:CGRectMake(0, 0, 320, 280)] autorelease];
        self.view = modalView;
        [modalView.btnConfirm addTarget:self action:@selector(onBtnConfirmTapped) forControlEvents:UIControlEventTouchUpInside];
    }
    
    return self;
}
- (void) onBtnConfirmTapped
{
    
 
        /*
        UIAlertView * alerView = [[UIAlertView alloc] initWithTitle:@"alarm" message:@"failed" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:  nil];
        [alerView show] ;
        [alerView release];
         */
    
    [self.delegate modalViewController:self didFinishWithObject:nil];
     
 
}
@end
